{% extends 'base.html' %}
{% block body %}

<div>
    <a href="#linux" data-toggle="tab">linux</a>
    <a href="#python" data-toggle="tab">python</a>


    <div class="tab-content">
        <div class="tab-pane active" id="linux">
            {% for item in choice %}
            {% if item.language=="linux" %}
            <div>
                <span>{{ item.language }}</span>
                <span>{{ item.question }}</span>
                <span>{{item.A}}</span>
                <span>{{item.B}}</span>
                <span>{{item.C}}</span>
                <span>{{item.D}}</span>
                <span>{{item.answer}}</span>
                <span>删除</span>
            </div>
            {% endif %}
            {% endfor %}

            {% for item in word %}
            {% if item.language=="linux" %}
            <div>
                <span>{{ item.language }}</span>
                <span>{{ item.question }}</span>
                <span>{{item.answer}}</span>
                <span>删除</span>
            </div>
            {% endif %}
            {% endfor %}

        </div>
        <div class="tab-pane" id="python">
            {% for item in choice %}
            {% if item.language=="python" %}
            <div>
                <span>{{ item.language }}</span>
                <span>{{ item.question }}</span>
                <span>{{item.A}}</span>
                <span>{{item.B}}</span>
                <span>{{item.C}}</span>
                <span>{{item.D}}</span>
                <span>{{item.answer}}</span>
                <span>删除</span>
            </div>
            {% endif %}
            {% endfor %}

            应用题
            {% for item in word %}
            {% if item.language=="python" %}
            <div>
                <span>{{ item.language }}</span>
                <span>{{ item.question }}</span>
                <span>{{item.answer}}</span>
                <span>删除</span>
            </div>
            {% endif %}
            {% endfor %}
        </div>
    </div>

</div>


{% endblock %}

